<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>确认订单</title>
	<%@ include file="../common/common.jsp"%>
	<link rel="stylesheet" type="text/css" href="${ctx}/page/lib/other/css/main.css" />
</head>
<body>

<div class="line padding border-bottom">
	<div class="xs3 text-center">订&nbsp;单&nbsp;号:</div>
	<div class="xs9">${kaMiOrder.orderNo}</div>
</div>
<div class="line padding border-bottom">
	<div class="xs3 text-center">商品名称:</div>
	<div class="xs9">${kaMiOrder.name}</div>
</div>
<div class="line padding border-bottom">
	<div class="xs3 text-center">支付金额:</div>
	<div class="xs9"><fmt:formatNumber type="number" value="${kaMiOrder.payAmount}" pattern="0.00" maxFractionDigits="2"/>&nbsp;元</div>
</div>
<div class="line padding border-bottom">
	<c:if test="${kaMiOrder.channel eq 'SALE'}">
		<div class="xs3 text-center">赠送积分:</div>
		<div class="xs9"><fmt:formatNumber type="number" value="${kaMiOrder.givePoint}" pattern="0.0000" maxFractionDigits="4"/></div>
	</c:if>
	<c:if test="${kaMiOrder.channel eq 'EXCHANGE'}">
		<div class="xs3 text-center">支付积分:</div>
		<div class="xs9"><fmt:formatNumber type="number" value="${kaMiOrder.payPoint}" pattern="0.0000" maxFractionDigits="4"/></div>
	</c:if>
</div>
<c:if test="${kaMiOrder.sendType eq 'HAND'}">
	<div class="line padding border-bottom"">
		<div class="xs3 text-center">备&nbsp;&nbsp;&nbsp;&nbsp;注:</div>
		<div class="xs9"><textarea type="text" class="input" id="remark" name="remark" placeholder="${remarkTip}" /></textarea></div>
	</div>
</c:if>
<div class="line padding border-bottom"">
	<div class="xs3 text-center">描&nbsp;&nbsp;&nbsp;&nbsp;述:</div>
	<div class="xs9">${detail}</div>
</div>

<div class="" style="height:30px;"></div>
<div class="margin">
	<button class="button bg-green button-big button-block" onclick="gopay()">微信支付</button>
</div>
<input id="orderNo" type="hidden" value="${kaMiOrder.orderNo}">
<script type="text/javascript">
	function gopay(){
		var orderNo = $("#orderNo").val();
		var remark = $("#remark").val();
		window.location.href=mServerUrl+"/page/wxPayPage.htm?orderNo="+orderNo+"&remark="+remark+"&time="+((new Date()).getTime());
		
	}
</script>
</body>
</html>